typedef struct {
    int a, b, c;
    int array[20];
} Data0;

typedef struct {
    int x, y, z;
    Data0 *p;
} Data1;


Data1 data;


int foo(Data1 *dp, int n)
{
    return dp->p->array[n];
}